import useRequest from '../hook/request';

// 就诊记录 取消预约
export function cancelSubscribeApi(params: any, id: number) {
  return useRequest(
    `sick/record/cancelSubscribe/${id}`,
    params,
    'POST'
  )
}


// 确定预约
export function userCanComingApi(params: any, id: number) {
  return useRequest(
    `customer/subscribe/userCanComing/${id}`,
    params,
    'POST'
  )
}

// 获取预约信息
export function getSubscribeByIdApi(params: any, id: number) {
  return useRequest(
    `customer/subscribe/getSubscribeById/${id}`,
    params,
    'GET'
  )
}